Skip to content

feat: Error reporting at the end of the simulatiuon #3929

Open
arng40 wants to merge 346 commits intofeat/dudes/perforations-table-detailfrom
feat/dudes/warning-report
Open

feat: Error reporting at the end of the simulatiuon #3929
arng40 wants to merge 346 commits intofeat/dudes/perforations-table-detailfrom
feat/dudes/warning-report

Conversation

@arng40
Copy link
Copy Markdown
Contributor

@arng40 arng40 commented Dec 23, 2025

Will be merged after : #3902

  • Introduce a logHistory to store all the log
  • Gathering logs between ranks

Located after MemoryStatsOutput :

Ex :


Types Error ExternalError Warning Exception
MeshGeneration 0 0 3 0
NumericalMethods 0 0 5 0
ImportFields 0 0 5 0

amandinehry and others added 30 commits August 21, 2025 15:07
…ASSERT and GEOS_THROW are now compatible with context parameters)
…file-and-structure-2' into refactor/dudes/error-context
Copy link
Copy Markdown
Contributor

@MelReyCG MelReyCG left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we see a real case sample?

}
else
{
it->second.m_count += 1;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be?

Suggested change
it->second.m_count += 1;
it->second.m_count += logRecord.m_value.m_count;


GEOS_THROW_IF_NE( m_state, State::UNINITIALIZED, geos::LogicError );

LogPart postProcessiveLog( "Parsing", MpiWrapper::commRank() == 0 );
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What do you think of

Suggested change
LogPart postProcessiveLog( "Parsing", MpiWrapper::commRank() == 0 );
LogPart postProcessiveLog( "Input Files Processing", MpiWrapper::commRank() == 0 );

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sounds better

Comment on lines +381 to +384
if( MpiWrapper::commRank() == 1 )
{
GEOS_WARNING( "labla" );
}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Be careful, you tend to forget more and more of these in your recent works

>
>
static GatherResult< CONTAINER >
gatherBufferRank0( CONTAINER const & localBuffer )
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure which PR should go first... One should be based on the other one because you implement this in the two PRs. Taking into account any comment / change on the other PR

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

Comment on lines +19 to +25
#include "common/StdContainerWrappers.hpp"


// // TPL includes
#include <gtest/gtest.h>
#include <gtest/gtest-spi.h>
#include <memory>
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you can revert

Comment on lines +138 to +143
{
static_assert( std::is_trivially_copyable_v< T > );
if( ptr + sizeof(T)> end ) throw std::runtime_error( "Buffer truncated" );
memcpy( &data, ptr, sizeof(T) );
ptr += sizeof(T);
}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

-> CPP
Here and for all other >1 function, as usual.

TableLayout tableLayout;
tableLayout.addColumn( "Types" );

// fill header
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you can maybe add some more "part" comments for this function I think.

tableLayout.addColumn( "Types" );

// fill header
for( size_t msgTypeIdx = (size_t) MsgType::Error; msgTypeIdx != (size_t)MsgType::Undefined; msgTypeIdx++ )
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do as I did in my PR for the -d:

Suggested change
for( size_t msgTypeIdx = (size_t) MsgType::Error; msgTypeIdx != (size_t)MsgType::Undefined; msgTypeIdx++ )
for( size_t msgTypeIdx = 0; msgTypeIdx < (size_t)MsgType::Count; msgTypeIdx++ )

@arng40 arng40 requested a review from tjb-ltk as a code owner March 27, 2026 08:42
@MelReyCG MelReyCG self-requested a review March 27, 2026 16:09
arng40 added 4 commits March 31, 2026 10:56
commit b962b2c
Author: arng40 <[email protected]>
Date:   Tue Mar 31 10:52:52 2026 +0200

    :coffin: dead code & spaces

commit dfe0619
Author: arng40 <[email protected]>
Date:   Tue Mar 31 10:51:32 2026 +0200

    :art: format code

commit 55aff05
Merge: ee7d7da ba863d7
Author: arng40 <[email protected]>
Date:   Tue Mar 31 10:51:05 2026 +0200

    Merge branch 'feat/dudes/perforations-table-detail' of https://github.com/GEOS-DEV/GEOS into feat/dudes/perforations-table-detail

commit ee7d7da
Author: arng40 <[email protected]>
Date:   Tue Mar 31 10:50:50 2026 +0200

    :bug: local scope for globalWellElemIndices

commit ba863d7
Merge: 0d22428 510dc76
Author: Arnaud DUDES <[email protected]>
Date:   Tue Mar 31 10:34:16 2026 +0200

    Merge branch 'develop' into feat/dudes/perforations-table-detail

commit 0d22428
Merge: 17538bd 23a5694
Author: arng40 <[email protected]>
Date:   Mon Mar 30 18:01:56 2026 +0200

    Merge branch 'feat/dudes/perforations-table-detail' of https://github.com/GEOS-DEV/GEOS into feat/dudes/perforations-table-detail

commit 17538bd
Author: arng40 <[email protected]>
Date:   Mon Mar 30 18:01:44 2026 +0200

    :recycle: relocated in perfo data + renaming

commit 23a5694
Merge: 1181253 acd7cc5
Author: MelReyCG <[email protected]>
Date:   Mon Mar 30 17:12:21 2026 +0200

    Merge branch 'develop' into feat/dudes/perforations-table-detail

commit 1181253
Author: arng40 <[email protected]>
Date:   Mon Mar 30 17:11:47 2026 +0200

    :art: added boolean array for perfo availibility

commit a302088
Author: MelReyCG <[email protected]>
Date:   Mon Mar 30 11:19:58 2026 +0200

    🎨 spaces

commit 935d117
Author: arng40 <[email protected]>
Date:   Mon Mar 30 10:12:28 2026 +0200

    :art: improve testMpiTable Cond

commit 7d6249d
Author: arng40 <[email protected]>
Date:   Mon Mar 30 10:12:03 2026 +0200

    :art: update perdoration sorting cond

commit 81a96b2
Author: arng40 <[email protected]>
Date:   Mon Mar 30 10:10:21 2026 +0200

    :coffin:  :label: remove dead code, update types

commit bdc15ec
Author: arng40 <[email protected]>
Date:   Fri Mar 27 17:12:37 2026 +0100

    :truck: move declaration outside hpp

commit ecef467
Author: arng40 <[email protected]>
Date:   Fri Mar 27 11:15:41 2026 +0100

    :green_heart: fix CI build
@MelReyCG MelReyCG changed the base branch from develop to feat/dudes/perforations-table-detail March 31, 2026 12:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

DO NOT MERGE ! flag: no rebaseline Does not require rebaseline type: feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants